package io;

import java.io.*;

public class BufferReaderDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("pw.txt");

        InputStreamReader isr=new InputStreamReader(fis);

        BufferedReader br=new BufferedReader(isr);

        String line;
        while ((line=br.readLine())!=null){
            System.out.println(line);
        }
        br.close();











    }
}
